<?php


namespace app\controller;

use app\BaseController;

class Demo extends BaseController
{
    public function show(){
        $result = [
            'status' => 1,
            'message' => 'ok',
            'result' => [
                'id' => 1
            ]
        ];

        $header = [
            'token' => 'd4jgoeorj4'
        ];
        return json($result,201,$header);
    }

    public function request(){
        dump($this->request->param('abc',1,'intval'));
    }
}